import request from "@/utils";
import store from "@/store";
// 发布评论接口
export const addMessageAPI = (content) => {
  return request({
    url: "/my/addMessage",
    headers: {
      Authorization: store.state.touritToken,
    },
    method: "post",
    data: {
      content,
    },
  });
};

// 获取评论接口
export const getMessageAPI = () => {
  return request({
    url: "/my/message",
    headers: {
      Authorization: store.state.touritToken,
    },
    method: "get",
  });
};

// 删除评论接口
export const delMessageAPI = (id) => {
  return request({
    url: "/my/delMessage/" + id,
    headers: {
      Authorization: store.state.touritToken,
    },
    method: "get",
  });
};
